package com.hub.esdemo.service.msg;


import com.hub.esdemo.config.RabbitMQConfig;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @ author 飞天蝙蝠
 * @ date & time 2024/12/28 12:44
 */
//@Service
public class RabbitMQReceiver {

    @RabbitListener(queues = RabbitMQConfig.QUEUE_NAME)
    public void receive(String message) {
        System.out.println("Received message: " + message);
    }
}
